﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Eleanor.Website.Utility;

namespace Eleanor.Website.Utility.Filter
{
    public class UrlParatersFilter : ActionFilterAttribute
    {
         public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
             UrlParameters urlParameters = new UrlParameters();
             urlParameters["catalog"] = Const.DefaultCatalogName;
             filterContext.Controller.ViewBag.UrlParameters = urlParameters;
        }
    }
}